Crate nakamoto_net

source ·
Expand description

Peer-to-peer networking core types.

Re-exports

pub use event::Publisher;
pub use time::LocalDuration;
pub use time::LocalTime;

Modules

Peer-to-peer protocol errors.
Events generated by the peer-to-peer system.
A simple P2P network simulator. Acts as the reactor, but without doing any I/O.

Enums

Disconnection event which includes the reason.
Output of a state transition of the state machine.
Link direction of the peer connection.

Traits

Remote peer id, which must be convertible into a net::SocketAddr
Any network reactor that can drive the light-client service.
A network service.
A service state-machine to implement a network protocol’s logic.
Used by certain types of reactors to wake the event loop, for example when a Service::Command is ready to be processed by the service.